using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class follow_up_DateMap : EntityTypeConfiguration<follow_up_Date>
    {
        public follow_up_DateMap()
        {
            // Primary Key
            this.HasKey(t => t.FUD_ID);

            // Properties
            this.Property(t => t.FUD_Time)
                .HasMaxLength(15);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("follow_up_Date");
            this.Property(t => t.FUD_ID).HasColumnName("FUD_ID");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.FUD_Time).HasColumnName("FUD_Time");
            this.Property(t => t.create_by).HasColumnName("create_by");
        }
    }
}
